/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/cat.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __DB961757_CED9_41ED_AF48_A9D6E2A38F28__
#define __DB961757_CED9_41ED_AF48_A9D6E2A38F28__

namespace http
{    
    class i_cookie;

    class i_session : public xos::i_release
    {
    protected:
        virtual ~i_session(){}

    public:
        virtual const char * id( const char * lpszId ) = 0;
        virtual int max_age( int nSecond ) = 0;
        virtual int release_ref() = 0;
        virtual int add_ref() = 0;

    };

} // http

#endif // __DB961757_CED9_41ED_AF48_A9D6E2A38F28__
